package com.cqut.ktpspring.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqut.ktpspring.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    @Select("select * from comment where work_id=#{workId}")
    List<Comment> getComments(String workId);
}
